$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  padding-top: 7vw;

  .main{
    overflow: hidden;
  }

  .bg_shape {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 50vh;

    img {
      width: 100%;
      object-fit: contain;
    }
  }

  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    background: rgba(0, 0, 0, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;

    .content {
      position: relative;

      .s {
        img {
          width: 900/$f+vw;
          object-fit: contain;
        }
      }

      .close {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-100%);
        cursor: pointer;

        img {
          width: 2vw;
          min-width: 20px;
        }
      }

      .mc {
        position: absolute;
        left: 15%;
        top: 12%;
        width: 63%;

        .t {
          color: #FFF;
          font-size: $fontSize_48;
          font-style: italic;
          text-align: center;
        }

        .des {
          margin: 1vw 0;
          line-height: 1.5;

          p {
            color: #FFF;
            font-size: $fontSize_24;
            font-style: italic;
            text-indent: $fontSize_24;
          }
        }

        .icons {
          display: flex;

          a {
            margin-right: 10px;

            svg {
              width: 24/$f+vw;
              min-width: 16px;
            }
          }
        }
      }
    }
  }

  .section1 {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .title {
      position: relative;
      display: inline-block;

      img {
        width: 540/$f+vw;
      }

      p {
        position: absolute;
        color: #FFF;
        font-size: 48/$f+vw;
        font-weight: bold;
        right: 5%;
        top: 25%;
        text-transform: uppercase;
      }
    }
  }

  .section2 {
    padding: 4vw 8vw;
    background: url(../images/sbg.png) no-repeat;
    background-size: cover;
    .list {
      width: 100%;
      display: flex;
      flex-wrap: wrap;

      .item {
        width: 30%;
        margin-left: 2.5%;
        border-radius: 12px;
        background: #2B2B2B;
        margin-bottom: 2vw;
        .pic {
          img {
            width: 100%;
            display: block;
            object-fit: cover;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
          }
        }

        .st {
          padding: 1vw 0;
          text-align: center;
          color: #FFF;
          font-size: $fontSize_24;
        }
      }
    }
  }
  
  .section3{
    padding-bottom:8vw;
    position: relative;
    overflow: hidden;
    .line2{
      position: absolute;
      left: 0;
      bottom:0;
      width: 100%;
      img{
        width: 100%;
        display: block;
      }
    }
    .t{
      margin: 4vw 8vw;
      color: #000;
      font-size: $fontSize_48;
      font-weight: 700;
    }
    .scroll-container {
      width: 100%;
      overflow: hidden;
      position: relative;
      .line1{
        position: absolute;
        left: 0;
        top:0;
        width: 100%;
        img{
          width: 100%;
          display: block;
        }
      }
      .animate_box {
        display: flex;
        width: max-content;
        animation: ani-loop 20s linear infinite;

        .flex-xb {
          display: flex;
          flex-wrap: wrap;

          .icon {
            width: 165/19.2+vw;
            border-radius: 12px;
            height: 89/19.2+vw;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 2vw;
            img {
              max-height: 80%;
              max-width: 80%;
              display: block;
              object-fit: contain;
            }
          }
        }

        @keyframes ani-loop {
          0% {
            transform: translateX(0);
          }

          100% {
            transform: translateX(-50%);
          }
        }
      }

      .animate_box2 {
        animation-direction: reverse;
        margin: 2vw 0;
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 80px;
    .section1{
      .title{
        img{
          width: 160px;
        }
        p{
          font-size: 12px;
        }
      }
    }
    .section2{
      padding: 20px 5%;
      .list{
        .item{
          margin-left: 0;
          width: 100%;
          margin-bottom: 20px;
          .st{
            padding: 15px 0;
            font-size: 16px;
          }
        }
      }
    }
    .section3{
      margin-bottom: 30px;
      .t{
        margin: 20px 5%;
        font-size: 24px;
      }
      .scroll-container{
        .animate_box{
          .flex-xb{
            .icon{
              width: 120px;
              height: 60px;
            }
          }
        }
      }
    }
  }
}